﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TeacherClass T1 = new TeacherClass();
        T1.TeacherName = "余振";
        T1.Address = "吉林省长春市";
        Response.Write("ASP.NET教师：" + T1.TeacherName + "<br/>");
        Response.Write("地址：" + T1.Address + "<br/>");
        Response.Write("月工资：" + T1.Charge + "<br/>");
        TeacherClass T2 = new TeacherClass();
        T2.TeacherName = "yz";
        T2.Charge = -111;
        Response.Write("ASP.NET实习教师：" + T2.TeacherName + "<br/>");
        Response.Write("月工资：" + T2.Charge + "<br/>");//0
    }
}
